package com.itheima.mapper;


import com.itheima.pojo.dto.dishDto.DishAddDto;
import com.itheima.pojo.dto.dishDto.DishUpdateDto;
import com.itheima.pojo.vo.dishVo.DishByCategoryIdVo;
import com.itheima.pojo.vo.dishVo.DishByPageVo;
import com.itheima.pojo.vo.dishVo.GetDishByIdVo;
import com.itheima.pojo.vo.dishVo.GetDishVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface DishMapper {
    int add(DishAddDto dish);

    int update(DishUpdateDto dish);

    int delete(String id);

    int updataByStatus(String id);
     List<DishByCategoryIdVo>  selectAllByCategoryId(String categoryId, Integer status);
     List<GetDishVo> selectAll();
     GetDishByIdVo selectById(String id);
    List<DishByPageVo> selectByPage(Integer page, Integer pageSize, String name);
}
